<?php

class CtdocumentocaracteristicaCustomForm extends CtdocumentocaracteristicaForm
{

  public function configure()
  {
    $widgetName = $this->getOption('widgetName');
    $widget = $this->getWidgetCustom($widgetName);
    
    $this->setWidget('valorCaracteristica',$widget['widget']);
    $this->getWidget('valorCaracteristica')->setLabel($widget['label']);
    
  }

  public function getWidgetCustom($name)
  {
    $widgets = array(
      'titulo' => array('label' => 'Titulo',
                        'widget' => new sfWidgetFormInputText())
      
    );
    
    return $widgets[$name];
  }
}

